<template>
	<view>
		<view class="swiper" style="padding: 20rpx;background-color: #fff;">
			<u-swiper :list="swiperList" height="300" @click="to"></u-swiper>
		</view>
		<u-gap height="20" bg-color="#f7f7f7"></u-gap>
		<view class="news" style="margin-top: 20rpx;">
			<view class="title1" style="padding: 0 20rpx;">活动展示</view>
			<view class="news-list" style="padding: 20rpx;background-color: #fff;">
				<view class="news-item" style="display: flex;flex-direction: row;
				justify-content: space-between;padding: 20rpx 0;border-top: 2rpx solid #e4e7ed;" v-for="item in 5">
					<view class="left" style="width: 450rpx;">
						<view class="top" style="height: 168rpx;">
							<text class="line" style="font-weight: bold;font-size: 32rpx;">
								参观党史博物馆1
								</text>
							<text class="line" style="font-size: 26rpx;">
								永远更党走，风景新政策，永远更党走，风景新政策，永远更党走，风景新政策，永远更党走，风景新政策
								</text>
						</view>
						<view class="bottom" style="display: flex;flex-direction: row;font-size: 22rpx;
						color: #666;">
							<text>99 阅读</text>
							<text style="margin-left: 20rpx;">2023-2-21</text>
						</view>
					</view>
					<view class="right center">
						<navigator url="/pages/history-library/history-library">
							<image src="/static/DangJian1.jpg.jpg" mode="" style="width: 250rpx;height: 200rpx;"></image>
						</navigator>
					</view>
				</view>
				<u-divider>没有更多了</u-divider>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
				swiperList: [
					{
						image: '../../static/DangJian1.jpg.jpg'
					},
					{
						image: '../../static/DangYuanHuoDong1.jpg.jpg'
					},
					{
						image: '../../static/u=604788707,102911010&fm=26&fmt=auto&gp=0.jpg'
					}
				],
				tabList: [
					{
						name: '最新动态'
					},
					{
						name: '党之廉政'
					},
					{
						name: '党之风采'
					}
				],
				tabCurrent: 0
			};
		},
		methods:{
			tabChange(index){
				this.tabCurrent = index
			},
			to(){
				uni.navigateTo({
					url:'/pages/history-library/history-library'
				})
			}
		}
	}
</script>

<style lang="scss">

</style>
